import request from '@/utils/request'

/*  节水管理培训台账表 */
// 列表查询
const waterSaveManageTrainingList = function (params = {}) {
  return request({
    url: '/zy-api/api/train/findList',
    method: 'post',
    data: params
  })
}

// 新增
const addWaterSaveManageTraining = function (params = {}) {
  return request({
    url: '/zy-api/api/train/insert',
    method: 'post',
    data: params
  })
}

// 修改
const editWaterSaveManageTraining = function (params = {}) {
  return request({
    url: '/zy-api/api/train/update',
    method: 'post',
    data: params
  })
}

// 删除
const delWaterSaveManageTraining = function (params = {}) {
  return request({
    url: '/zy-api/api/train/delete',
    method: 'post',
    data: params
  })
}

// 审核
const auditWaterSaveManageTraining = function (params = {}) {
  return request({
    url: '/zy-api/api/train/review',
    method: 'post',
    data: params
  })
}

export {
  waterSaveManageTrainingList,
  addWaterSaveManageTraining,
  editWaterSaveManageTraining,
  delWaterSaveManageTraining,
  auditWaterSaveManageTraining
}